﻿@model IEnumerable<HanGu.Entity.ActivePlan>
@{
    ViewBag.Title = "活动策划";
    Layout = "~/Views/Shared/Main.cshtml";
    TempData["sidecalss"] = "EveryDayWisdom";
    var SearchParma = ViewData["SearchParma"] as HanGu.Entity.UniversallySearchParam ?? new HanGu.Entity.UniversallySearchParam();

}
@section Header
{
    <style>
        .contentLeft
        {
            width: 100%;
        }
        #partContent
        {
            width: 100%;
        }
        .movieContain
        {
            width: 100%;
            margin-top: 5px;
        }
    </style>
}
@section Banner
{
    @Html.Partial("Banner")
}
@section Content{
    <form id="PlanpagerForm" method="post" action="/Plan/index">
    <input type="hidden" name="pageNum" value="@SearchParma.Pagination.CurrentIndex" />
    <input type="hidden" name="PageTotal" value="@SearchParma.Pagination.PageTotal" />
    <input type="hidden" name="RowCount" value="@SearchParma.Pagination.RowCount" />
    <input type="hidden" name="orderField" value="${param.orderField}" />
    <input type="hidden" name="Title" value="@SearchParma.Ttile" />
    <input type="hidden" name="StarTime" value="@SearchParma.StarDateTime" />
    <input type="hidden" name="EndTime" value="@SearchParma.EndDateTime" />
    </form>
    <div class="contentLeft">
        <table cellpadding="0" cellspacing="0" id="partContent">
            <tr>
                <td>
                    <div class="ContentTitle">
                        <div class="ContentTitleLeft">
                            <img src="/Content/images/planTitle.gif" width="145" height="26" alt=""></div>
                        <div class="ContentTitleRight">
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="content">
                    <div class="detail">
                        @TempData["ModuleDetail"]
                    </div>
                    <div class="clear">
                    </div>
                    <div class="Educationlist">
                        <ul>
                            @foreach (var item in Model)
                            {
                                <li>
                                    <div class="clear" style="height: 5px;">
                                    </div>
                                    <div class="movieContain">
                                        <div class="parent_panel">
                                            <div class="movie_image_panel">
                                                @{
                                var titlePic = string.Empty;
                                if (!string.IsNullOrEmpty(item.TitlePic))
                                { titlePic = item.TitlePic; }
                                else
                                { titlePic = "/Content/default.jpg"; } 
                                                }
                                                <a href="/plan/detail/@item.ID">
                                                    <img src="@titlePic" alt="@item.Title" style="height:80px; width:150px;"/></a>
                                            </div>
                                            <div class="movie_text_panel">
                                                <ul>
                                                    <li class="EducationTitle"><a href="/plan/detail/@item.ID">@item.Title</a></li>
                                                    <li>@*@{
                                string remark = Hangu.WebClient.MyHtmlHelper.FormatHtml(@item.Remark).ToHtmlString();
                                int len = remark.Length < 130 ? remark.Length : 130;
                                                        }
                                                        @remark.Substring(0, len)
                                                        ...*@
                                                        <div style=" margin:3px; height:50px;overflow: hidden;text-overflow:ellipsis;white-space:normal;" title="@Hangu.WebClient.MyHtmlHelper.FormatHtml(@item.Summary)">
                                                            @item.Summary
                                                        </div>
                                                    </li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="clearline" />
                                </li>
                            }
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
        @Html.Partial("PageBar")
    </div>
}
@section Side{
    @Html.Partial("Side")
}
